package org.example.demo2.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @RequestMapping("/sayHello")
    public String sayHello() {
        return "Hello Spring";
    }
    @RequestMapping("/sayHi")
    public String sayHi() {
        return "hi Spring";
    }
}
